/**
 * 注意：
 * 此部分内容，在vue-cli模式下，需要在vue.config.js加入如下内容才有效：
 * module.exports = {
 *     transpileDependencies: ['uview-v2']
 * }
 */

let platform = '' // 平台
let channel = '' // 渠道
let systemInfo = uni.getSystemInfoSync()
let isToutiao = systemInfo.appName === 'Toutiao' ? true : false
let isIOS = systemInfo.platform === 'ios'

// #ifdef VUE3
platform = 'vue3'
// #endif

// #ifdef VUE2
platform = 'vue2'
// #endif

// #ifdef APP-PLUS
platform = '4'
channel = isIOS ? 'IOS' : 'ANDROID'
// #endif

// #ifdef APP-NVUE
platform = 'nvue'
channel = '1'
// #endif

// #ifdef H5
platform = 'h5'
// #endif

// #ifdef MP-WEIXIN
platform = '1'
channel = 'WX'
// channel = isIOS ? 'IOS' : 'ANDROID'
// #endif

// #ifdef MP-ALIPAY
platform = 'alipay'
channel = 'ZFB'
// #endif

// #ifdef MP-BAIDU
platform = '2'
channel = '3'
// #endif

// #ifdef MP-TOUTIAO
platform = '3'
channel = '4'
// #endif

// #ifdef MP-QQ
platform = 'qq'
// #endif

// #ifdef MP-KUAISHOU
platform = 'kuaishou'
// #endif

// #ifdef MP-360
platform = '360'
// #endif

// #ifdef QUICKAPP-WEBVIEW
platform = 'quickapp-webview'
// #endif

// #ifdef QUICKAPP-WEBVIEW-HUAWEI
platform = 'quickapp-webview-huawei'
// #endif

// #ifdef QUICKAPP-WEBVIEW-UNION
platform = 'quckapp-webview-union'
// #endif


export {
	platform,
	channel,
	isIOS
}
